package org.appchat.service.protobuf;

import com.google.protobuf.Message;
/**
 * Created by Ryan of app-chat.org
 * on: 7/11/12 at 10:58 AM
 */
public class MessageMarshaller {

    /**
     * This method will serialize an {@link Message} into a byte[] array
     *
     * @param messsage Any {@link Message}
     * @return A byte[] array representing the Message.
     */

    public byte[] marshall(Message messsage) {
        return messsage.toByteArray();
    }
}
